package com.zhu.blog.dao;


import com.zhu.blog.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;


@Repository
public interface UserRepository extends JpaRepository<User,Long> {

    //找到数据库中的用户名和密码
    User findByUsernameAndPassword(String username,String password);

}
